<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/tags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>用户登陆</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link href="${ctx}/resources/css/login.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/resources/js/jquery.min.js"></script>
<script type="text/javascript">
	var ctx = '${ctx}';
	$(function() {
		var h = ($(document).height() - $('.loginbox').height()) / 2;
		var w = ($(document).width() - $('.loginbox').width()) / 2;
		$('.loginbox').css({
			"margin-top" : h,
			"margin-left" : w
		});
		$('#btnLogin').click(function() {
			var login = $('#login').val() || "";
			var pwd = $('#password').val() || "";
			$.post(ctx + '/login.json', {
				login : login,
				password : pwd
			}, function(json) {
				if (json.result) {
					window.location.href = ctx + "/manager.htm";
				} else {
					alert(json.message);
				}
			});
		});
	});
</script>
</head>
<body>
	<div class="login_top"></div>
	<div class="loginbox">
		<div class="logo">
		<span>
		
		<h1>欢迎进入高速公路网络检测系统</h1>
		
		</span>
		
		
		
		</div>
		<div class="login_input">
			<div class="login_user"><label for="username">用户名：</label></div>
			
			<span><input type="text" name="用户名" id="login" placeholder="请输入登录名" placeholder="请输入用户名" value=""></span>
		</div>
		<div class="login_input">
			<div class="login_pwd"><label for="password">密 &nbsp;&nbsp;码：</label> </div>
			
			<span><input type="password" name="password" id="password" placeholder="请输入密码" value=""></span>
		</div>
		<div class="login_remember">
			<input type="checkbox"><span>记住密码</span>
			<a href="${ctx}/register.htm">注册</a>
		</div>
		<input type="submit" id="btnLogin" class="login_button" value="登录" />
	</div>
</body>
</html>
